﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace TaiLieu
{
    public class Pager
    {
        public static ArrayList ShowInfomationPaging(string catSub, string menu, int pageSize, int numberPageView, ArrayList al1, ref string _paggingCollection)
        {
            string query = "PageIndex('" + menu + "'," + catSub+",";
            PageCollection p = new PageCollection(pageSize, numberPageView, al1);
            _paggingCollection = p.ShowInformation(query, Config.UseAjax(), "p");
            return p.DataSource;
        }
    }
}
